package com.mzj.saas.mservice.property.service;

import com.mzj.saas.mservice.property.entity.EstateRepairsContentImg;
import com.mzj.saas.mservice.property.repository.EstateRepairsContentImgRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-14
 */
@Service
public class EstateRepairsContentImgService {
	@Autowired
    private EstateRepairsContentImgRepository estateRepairsContentImgRepository;

    public List<EstateRepairsContentImg> findByRepairsId(Long repairsId) {
        return estateRepairsContentImgRepository.findByRepairsId(repairsId);
    }

    public EstateRepairsContentImg save(EstateRepairsContentImg img) {
        return estateRepairsContentImgRepository.save(img);
    }
}
